<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    /**
     * 直接量的定义：
     */
    var u = {
        0:'frank',
        1:20,
        2:'男'

    };
    //不能使用点的方式读取
    //可以使用类似数组的方式读取

    var u2 = {
        0:'frank',
        1:20,
        2:'男',
        married:'H5'

    };
    console.log(u2[0])
    console.log(u2.married)
    console.log(u2['married'])


</script>
</body>
</html>